package com.yycx.module.bus.provider.service.hy;

import com.yycx.common.mybatis.model.ResultBody;
import com.yycx.module.bus.client.entity.hy.BusBankStatement;
import com.yycx.common.mybatis.base.service.IBaseService;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 银行流水 接口
 *
 * @author flyme
 * @date 2023-11-05
 */
public interface BusBankStatementService extends IBaseService<BusBankStatement> {
    /**
     * 导入银行流水
     * @param file
     * @param params
     * @return
     */
    ResultBody importData(MultipartFile file, Map params);

    /**
     * 清空认款ID
     * @param bankStatementId
     * @return
     */
    Boolean clearPaymentId(String bankStatementId);


    /**
     * 清空认款
     * @param paymentId
     * @return
     */
    Boolean clearByPaymentId(String paymentId);

    /**
     * 更新银行流水
     * @param bankStatementId
     * @param paymentId
     * @param amountState
     */
    void updateBankStatement(String bankStatementId, Long paymentId, Integer amountState);
}
